<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
	<title>{$name}┊{$site_name}</title>
    <meta http-equiv="Content-Language" content="ar-AE">
    <meta name="author" content="Powerless"> 
    <meta name="Copyright" content="{$site_seo_title}">
	<meta name="keywords" content="{$site_seo_keywords}" />
	<meta name="description" content="{$site_seo_description}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="__TMPL__Public/style/base.css"/>
    <link rel="stylesheet" type="text/css" href="__TMPL__Public/style/news.css"/>
	<link rel="icon" href="__TMPL__Public/images/favicon.ico" type="image/ico">
	<script type="text/javascript" src="__TMPL__Public/js/jquery.js"></script>
    <script type="text/javascript">
    $(function(){
    //start
    $("#shga span").hover(function(){
        $(this).siblings("#color").show();
    },function(){
        $(this).siblings("#color").hide();
        })	
    //end
    })
    </script>
        <script type="text/javascript" language="javascript">  
        function nofind(){
        var img=event.srcElement;
        img.src="__TMPL__Public/images/no-img.jpg";
        img.onerror=null; 
        }
        </script>
</head>

<body>
<div class=" wrapper top">
<div class="navbg">
	<div class="nav wrapper">
            	<ul>

             <li style="margin-right:20px;"><a href="{:u('list/index',array('id'=>111))}">آخر الأخبار</a></li>
             <li><a href="{:u('list/index',array('id'=>112))}">الصين</a></li>
             <li><a href="{:u('list/index',array('id'=>113))}">آسيا والمحيط الهندي</a></li>
             <li><a href="{:u('list/index',array('id'=>114))}">الشرق الأوسط</a></li>
             <li><a href="{:u('list/index',array('id'=>115))}">أوروبا</a></li>
             <li><a href="{:u('list/index',array('id'=>116))}">أمريكا</a></li>
             <li><a href="{:u('list/index',array('id'=>117))}">إفريقيا</a></li>
             <li><a href="{:u('list/index',array('id'=>118))}">المنظمات الإقتصادية </a></li>
             <li><a href="http://ar.ibtv.cc/"> العودة  </a></li>
            </ul>
    </div>
</div>
<div class="m2lone wrapper">
        <div style="width:960px;height:40px;overflow:hidden" id="demo">
        <table width="960" border="0" cellspacing="0" cellpadding="0" id="scrollimg" height="21">
        <tr>
        <td id="simg">
        <TABLE width="960" border="0" cellspacing="0" cellpadding="0" height="21">
        <tr>
        
                <php>
                $tag='cid:111,112,113,114,115,116,117,118;field:tid,post_title;limit:9;order:post_date desc';
                $posts=sp_sql_posts($tag); 
                </php>
                <foreach name="posts" item="new">
                    <td class="zi"><a  href="{:U('article/index',array('id'=>$new['tid']))}">{$new.post_title}</a></td>
                </foreach>
        </tr>
        </TABLE>
        </td>
        <td id="demo2"></td>
        </tr>
        </table>
        </div>
		<script LANGUAGE="Javascript">
			var speed=30
			var MyMar=setInterval(Marquee,speed)
			demo2.innerHTML=simg.innerHTML
			demo.onmouseover=function() {clearInterval(MyMar)} 
			demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
			function Marquee(){ 
			if(demo.scrollLeft<=0) 
			   demo.scrollLeft+=demo2.offsetWidth 
			else{ 
			   demo.scrollLeft-- 
			} 
			} 
        </script> 
    </div>
<div class=" wrapper m1">
	<div class="m1l">
    	<div class="m1lone">
        	<div class="m1lonel"><!--中国-->
            	<ul class="m5mainl1zuo">
		<php>
        $china_all=sp_sql_posts('cid:111;field:tid,post_title,smeta;limit:4;order:post_date desc');
        $a = 0;
        </php>
        <foreach name="china_all" item="all">
        <php>
        $a++;
        $smeta=json_decode($all['smeta'],true);
        if($a < 4)
        {
        </php>
					<li class="shga" id="shga">
                        <span><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        <img onerror="nofind();"  src="{$site_host}data/upload/{$smeta.thumb}" width="192" height="129"/>
                        </a></span>
                        <div class="color" id="color">
                        	<a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a>
                        </div>
                    </li>
        <php>
        }
        if($a == 4){
        </php>
                </ul>
            </div>
                        <div class="m1loner">
                	<div class="shga1" id="shga">
                        <span><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        <img onerror="nofind();"  src="{$site_host}data/upload/{$smeta.thumb}"  width="417" height="394"/>
                        </a></span>
                        <div class="color1" id="color">
                        	<a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a>
                        </div>
                    </div>
            </div>
        <php>
        }
        </php>
        </foreach>
        

        </div>
    	<div class="m1ltwo"><!--美国-->
        	<div class="m1ltwotit"><img src="__TMPL__Public/images/lan.jpg"/><span>الصين</span></div>
            <div class="m1ltwomain">
            	<div class="m1ltwomaint">
		<php>
        $us_all=sp_sql_posts('cid:112;field:tid,post_title,post_excerpt,smeta;limit:5;order:post_date desc');
        $a = 0;
        </php>
        <foreach name="us_all" item="all">
        <php>
        $a++;
        $smeta=json_decode($all['smeta'],true);
        if($a < 2)
        {
        </php>
                    <dl>
                    	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="193" height="150"/>
                        </a></dt>
                        <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                        <dd class="dd2"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>
                    </dl>
                </div>
            <div class="m1ltwomainb">
        <php>
        }
        if($a > 1){
        </php>
                	<dl>
                    	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="126" height="99"/>
                        </a></dt>
                        <dd><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                    </dl>
        <php>
        }
        </php>
        </foreach>
                </div>
                
            </div>
        </div>
    	<div class="m1ltwo"><!--欧洲-->
        	<div class="m1ltwotit"><img src="__TMPL__Public/images/lan.jpg"/><span>آسيا والمحيط الهندي</span></div>
            <div class="m1ltwomain">
            	<div class="m1ltwomaint">
                <php>
        $europe_all=sp_sql_posts('cid:113;field:tid,post_title,post_excerpt,smeta;limit:5;order:post_date desc');
        $a = 0;
        </php>
        <foreach name="europe_all" item="all">
        <php>
        $a++;
        $smeta=json_decode($all['smeta'],true);
        if($a < 2)
        {
        </php>
                    <dl>
                    	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="193" height="150"/>
                        </a></dt>
                        <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                        <dd class="dd2"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>
                    </dl>
                </div>
            <div class="m1ltwomainb">
        <php>
        }
        if($a > 1){
        </php>
                	<dl>
                    	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="126" height="99"/>
                        </a></dt>
                        <dd><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                    </dl>
        <php>
        }
        </php>
        </foreach>
                </div>
                
            </div>
        </div>
        <div class="m1lthree"><!--拉美-->
        	<div class="m1ltwotit"><img src="__TMPL__Public/images/lan.jpg"/><span>الشرق الأوسط</span></div>
            <div class="m1lthreemain">
            <php>
            $america_all=sp_sql_posts('cid:114;field:tid,post_title,post_excerpt,smeta;limit:5;order:post_date desc');
            </php>
            <foreach name="america_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
                	<dl>
                    	<dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                        <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="152" height="107"/>
                        </a></dt>
                        <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                        <dd class="dd2"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_excerpt}</a></dd>
                    </dl>
            </foreach>     
                </div>
        </div>
        <div class="m1lfour"><!--亚太/中东-->
        	<div class="m1ltwotit"><img src="__TMPL__Public/images/lan.jpg"/><span>أمريكا / أوروبا</span></div>
            <div class="m1lfourm">
            <php>
            $asia_mideast_all=sp_sql_posts('cid:115,116;field:tid,post_title,smeta;limit:10;order:post_date desc');
            </php>
            <foreach name="asia_mideast_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
                <dl>
                    <dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                    <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="75" height="59"/></a></dt>
                    <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                </dl>
            </foreach>
            </div>
        </div>
    </div>
    <div class="m1r">
    	<div class="m1r1">
        
        <div class="m1r3"><!--非洲-->
        	<div class="m1ltwotit" style="margin-top: 0px;"><img src="__TMPL__Public/images/lan.jpg"/><span>إفريقيا</span></div>
			<div class="m2l1main">
            <php>
            $africa_all=sp_sql_posts('cid:117;field:tid,post_title,smeta;limit:10;order:post_date desc');
            </php>
            <foreach name="africa_all" item="all">
                <php>
                $smeta=json_decode($all['smeta'],true);
                </php>
                <dl>
                    <dt><a href="{:U('article/index',array('id'=>$all['tid']))}">
                    <img onerror="nofind();" src="{$site_host}data/upload/{$smeta.thumb}" width="308" height="150"/></a></dt>
                    <dd class="dd1"><a href="{:U('article/index',array('id'=>$all['tid']))}">{$all.post_title}</a></dd>
                </dl>
            </foreach>
            </div>
            
		<php>
            $main_lb=sp_getslide('main_lb');
        </php>
        <foreach name="main_lb" item="lb"><php>break;</php></foreach>
        <img  onerror="nofind();" src="{$site_host}data/upload/{$lb.slide_pic}" alt="{$lb.slide_name}" width="320"  height="310" /></div>
        </div>
    	</div>
    </div>
    <include file="Public:footer" />
</div>

  
</body>
</html>
